list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake ${PROJECT_SOURCE_DIR}/cmake/vala)
find_package(Vala REQUIRED)
include("${VALA_USE_FILE}")
vala_add_executable(demo1 demo1.vala
                      PACKAGES gtk+-3.0
                      OUTPUT_DIR gen
                      CUSTOM_VAPIS ${PROJECT_SOURCE_DIR}/src/gen/odg.vapi
                      VAPI_DIRS ${PROJECT_SOURCE_DIR}/src/gen
                      COMPILE_FLAGS --target-glib=2.34
                      LINK_PATH ${PROJECT_SOURCE_DIR}/src
                      LINK_WITH odg)
vala_add_executable(demo2 demo2.vala
                      PACKAGES gtk+-3.0
                      OUTPUT_DIR gen
                      CUSTOM_VAPIS ${PROJECT_SOURCE_DIR}/src/gen/odg.vapi
                      VAPI_DIRS ${PROJECT_SOURCE_DIR}/src/gen
                      COMPILE_FLAGS --target-glib=2.34
                      LINK_PATH ${PROJECT_SOURCE_DIR}/src
                      LINK_WITH odg)
vala_add_executable(demo3 demo3.vala
                      PACKAGES gtk+-3.0
                      OUTPUT_DIR gen
                      CUSTOM_VAPIS ${PROJECT_SOURCE_DIR}/src/gen/odg.vapi
                      VAPI_DIRS ${PROJECT_SOURCE_DIR}/src/gen
                      COMPILE_FLAGS --target-glib=2.34
                      LINK_PATH ${PROJECT_SOURCE_DIR}/src
                      LINK_WITH odg)
vala_add_executable(demo4 demo4.vala
                      PACKAGES gtk+-3.0
                      OUTPUT_DIR gen
                      CUSTOM_VAPIS ${PROJECT_SOURCE_DIR}/src/gen/odg.vapi
                      VAPI_DIRS ${PROJECT_SOURCE_DIR}/src/gen
                      COMPILE_FLAGS --target-glib=2.34
                      LINK_PATH ${PROJECT_SOURCE_DIR}/src
                      LINK_WITH odg)
vala_add_executable(demo5 demo5.vala
                      PACKAGES gtk+-3.0
                      OUTPUT_DIR gen
                      CUSTOM_VAPIS ${PROJECT_SOURCE_DIR}/src/gen/odg.vapi
                      VAPI_DIRS ${PROJECT_SOURCE_DIR}/src/gen
                      COMPILE_FLAGS --target-glib=2.34
                      LINK_PATH ${PROJECT_SOURCE_DIR}/src
                      LINK_WITH odg)
vala_add_executable(demo6 demo6.vala
                      PACKAGES gtk+-3.0
                      OUTPUT_DIR gen
                      CUSTOM_VAPIS ${PROJECT_SOURCE_DIR}/src/gen/odg.vapi
                      VAPI_DIRS ${PROJECT_SOURCE_DIR}/src/gen
                      COMPILE_FLAGS --target-glib=2.34
                      LINK_PATH ${PROJECT_SOURCE_DIR}/src
                      LINK_WITH odg)
vala_add_executable(demo7 demo7.vala
                      PACKAGES gtk+-3.0
                      OUTPUT_DIR gen
                      CUSTOM_VAPIS ${PROJECT_SOURCE_DIR}/src/gen/odg.vapi
                      VAPI_DIRS ${PROJECT_SOURCE_DIR}/src/gen
                      COMPILE_FLAGS --target-glib=2.34
                      LINK_PATH ${PROJECT_SOURCE_DIR}/src
                      LINK_WITH odg)
